package fr.efrei.paumier.common.time;

import java.util.LinkedList;
import fr.efrei.paumier.common.time.Event;
import fr.efrei.paumier.common.time.EventQueue;

public class EventQueueIP implements EventQueue{
	private LinkedList<RegisterEvent> events;//register events listes

	@Override
	public void register(Event... event) {
		if(event.length==0) events.add(null);
		for (int i = 0; i < event.length; i++) {
			events.addFirst(new RegisterEvent(event[i]));	
		}
	}

	public LinkedList<RegisterEvent> getEvents() {
		return events;
	}

	public void setEvents(LinkedList<RegisterEvent> events) {
		this.events = events;
	}
}
